]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
accessDialog: Allow body label to wrap lines
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 12 Jul 2022 16:37:56 +0000 (13:37 -0300)
committerMarge Bot <marge-bot@gnome.org>
Thu, 14 Jul 2022 16:51:52 +0000 (16:51 +0000)
Allow the body label of the access dialog to wrap, and avoid
ellipsizing it.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5286

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2377>

js/ui/accessDialog.js

index 393315d458257461060cf7fa13cdf0c9dee7de88..a162d650167b1216e0955538ce6e3fcdf7007e10 100644 (file)
@@ -1,5 +1,5 @@
 /* exported AccessDialogDBus */
-const { Clutter, Gio, GLib, GObject, Shell, St } = imports.gi;
+const { Clutter, Gio, GLib, GObject, Pango, Shell, St } = imports.gi;
 
 const CheckBox = imports.ui.checkBox;
 const Dialog = imports.ui.dialog;
@@ -62,6 +62,8 @@ class AccessDialog extends ModalDialog.ModalDialog {
             text: body,
             x_align: Clutter.ActorAlign.CENTER,
         });
+        bodyLabel.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
+        bodyLabel.clutter_text.line_wrap = true;
         content.add_child(bodyLabel);
 
         this.addButton({